package com.hncu.Test;

import java.util.Scanner;

public class Demo2 {
    /*
      遍历字符串
     public char charAt(i)方法的作用是获取字符串中第i个元素
    */
    public static void main(String[] args) {
//        Scanner in = new Scanner(System.in);
//        String line = in.nextLine();
//        for (int i = 0; i < line.length(); i++) {
//            System.out.println(line.charAt(i));
//        }
        String s = "a";
        char ch = '2';
        System.out.println(s);
        System.out.println(ch);
    }
}
